const validateEmail = (email) => {
    const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
    return re.test(email);
};

const validatePassword = (password) => {
    return password.length >= 6;
};

const validateUsername = (username) => {
    return username.length >= 1 && username.length <= 10;
};

const validateWalletAddress = (address) => {
    return /^0x[a-fA-F0-9]{40}$/.test(address);
};

module.exports = {
    validateEmail,
    validatePassword,
    validateUsername,
    validateWalletAddress
};